home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-14 / Vol E-14.iso / games / conce002.swf / scripts / DefineSprite_46 / frame_11 / DoAction.as
Text File  |  2014-03-11  |  934b  |  42 lines

  1. stop();
  2. if(Number(eval("/:DoneCount")) < 2)
  3. {
  4.    play();
  5. }
  6. else
  7. {
  8.    set("/:DoneCount",0);
  9.    if(Number(eval("/:Count")) == 2)
  10.    {
  11.       if(eval("/:Smiley1Type") eq eval("/:Smiley2Type"))
  12.       {
  13.          setProperty("/" add eval("/:Smiley1Name"), _visible, false);
  14.          setProperty("/" add eval("/:Smiley2Name"), _visible, false);
  15.          tellTarget("../kite_r")
  16.          {
  17.             gotoAndPlay(2);
  18.          }
  19.          set("/:Pairs",eval("/:Pairs") - 1);
  20.          if(Number(eval("/:Pairs")) == 0)
  21.          {
  22.             tellTarget("../")
  23.             {
  24.                gotoAndStop("Ending");
  25.             }
  26.          }
  27.       }
  28.       else
  29.       {
  30.          tellTarget("/" add eval("/:Smiley1Name"))
  31.          {
  32.             gotoAndStop(1);
  33.          }
  34.          tellTarget("/" add eval("/:Smiley2Name"))
  35.          {
  36.             gotoAndStop(1);
  37.          }
  38.       }
  39.       set("/:Count",0);
  40.    }
  41. }
  42.